# Unicore Glitter
first = {'a':'agony','b':'bliss'}
second = dict(b='bagels', c='candy')
third = {**first, **second}
print(third)
fourth = {'d':'dounts'}
third.update(fourth)
print(third)

import copy

words = copy.deepcopy(third)
print(len(words))
print(words.pop('a'))
#  print(words.pop('z'))  # KeyError
print(words.pop('z','zoo'))
print(len(words))
words.clear()
print(len(words))
words['e'] = 'eraser'
print(words)
other = words
words.pop('e')
print(other) #  Mutable, been changed.
del other
another = copy.copy(words)
words['a'] = 'apple'
print(another) #  Also changed.


signals = {'green':'go', 'yellow':'go faster', 'red':['stop','smile']}
print(signals)
signals_copy = copy.deepcopy(signals)
signals['red'][1] = 'sweat'
print(signals)
print(signals_copy)

# Compare Dictionaries
a = {1:1, 2:2, 3:3}
b = {3:3, 2:2, 1:1}
print(a==b) #  True
#  print(a<b) #  comparison operators other than == and != are not supported.
